public class jumpSeven {
    public static void main(String[] args) {
//        int[] arr = {1,7,17,28,4,35};
//        int[] arr2 = new int[10];
//        jump(arr);
        teseSeven();
    }
    public static void jump(int[] arr){
        /*
        * 打印1-100之间的满足 7倍数和结尾的数据,打印
        * */
        for (int i = 1; i < 100; i++) {
            if(i %10 == 7 || i %7 == 0 || i/10%7 == 0){
                System.out.println(i);
            }
        }
    }

    public static void teseSeven() {
        int[] arr = {68,27,95,88,171,996,51,210};
        int res =0;
        for (int i = 0; i < arr.length; i++) {
            if((arr[i] %10 !=7 || arr[i]/10%10!=7)&& arr[i]%2==0){
                res+=arr[i];
            }
        }
        System.out.println(res);
    }
}
